import Cookies from 'js-cookie'

const TokenKey = 'bys-crm-token'
const userIdKey = 'bys-crm-userId'

export function getUserId(){
  return Cookies.get(userIdKey)
}
export  function setUserId(id){
  return Cookies.set(userIdKey,id)
}
export  function removeUserId(){
  return Cookies.remove(userIdKey)
}

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
